﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mmdealSearch.aspx.cs" Inherits="Customer_Profile.eCard.mmdealSearch" EnableEventValidation="false"%>

<%@ Register Src="../mainTop.ascx" TagName="mainTop" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Customer List</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
    <meta content="C#" name="CODE_LANGUAGE" />
    <meta content="JavaScript" name="vs_defaultClientScript" />
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/css/style.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript" src="/js/common.js"></script>

    <script language="javascript" type="text/javascript" src="/js/CalPopUp.js"></script>

</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
    <form id="Form1" name="form1" action="" method="post" runat="server">
        <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td width="1" background="/images/dot_vline.gif">
                    <img height="1" src="/images/spacer.gif" width="1"></td>
                <td valign="top" width="15">
                    <img height="1" src="/images/spacer.gif" width="15"></td>
                <td valign="top">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td style="height: 23px">
                                <uc1:mainTop ID="MainTop1" runat="server" />
                                <span class="navi-blu"><span class="navi-blk">Index &gt; Report &gt; <%--<%=sTitle %>--%></span>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td background="/images/dot_hline.gif">
                                <img height="1" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <table style="position: relative; top: 6px" cellspacing="0" cellpadding="0" width="100%"
                        border="0">
                        <tr>
                            <td>
                                <img height="6" src="/images/corner_lft1.gif" width="6"></td>
                            <td>
                                <div align="right">
                                    <img height="6" src="/images/corner_rgt1.gif" width="6"></div>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="1" cellpadding="4" width="100%" bgcolor="#c8c8c8" border="0">
                        <tr bgcolor="#e9e9e9">
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td width="95" style="height: 18px">
                                            <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="absMiddle">Card NO：</td>
                                        <td>
                                            <input id="txtfinno" class="input2" type="text" size="20" name="name" runat="server">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td width="95">
                                            <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="absMiddle">Date：</td>
                                        <td>
                                            From&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:TextBox ID="txtcreatedatebegin" runat="server" CssClass="input2" Width="120px"></asp:TextBox>&nbsp;&nbsp;&nbsp;<img
                                                style="cursor: hand" onclick="JavaScript:calPopForCMon(txtcreatedatebegin, 'ss');"
                                                height="14" src="/images/dot_date.gif" width="16" align="absMiddle">
                                            &nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:TextBox ID="txtcreatedateend" runat="server" CssClass="input2" Width="120px"></asp:TextBox>&nbsp;&nbsp;&nbsp;<img
                                                style="cursor: hand" onclick="JavaScript:calPopForCMon(txtcreatedateend, 'ss');"
                                                height="14" src="/images/dot_date.gif" width="16" align="absMiddle">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr bgcolor="#e9e9e9">
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td width="100">
                                            <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="absMiddle">地区：</td>
                                        <td>
                                            <asp:DropDownList ID="dropEntity" CssClass="input3" runat="server" Width="135">
                                            </asp:DropDownList>
                                        </td>                                        
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td width="100">
                                            <img height="9" hspace="5" src="/images/arw_gry_rgt.gif" width="9" align="absMiddle">购买期限：</td>
                                        <td>
                                            <asp:DropDownList ID="dropTerm" CssClass="input3" runat="server" Width="135">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            <div align="center">                                                
                                                <asp:Button ID="btnSearch" runat="server" Text="搜索" class="button" onclick="btnSearch_Click" />&nbsp;
                                                <asp:Button ID="btnAdd" runat="server" Text="添加" class="button" 
                                                    onclick="btnAdd_Click" />&nbsp;
                                                </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table style="position: relative; top: -6px" cellspacing="0" cellpadding="0" width="100%"
                        border="0">
                        <tr>
                            <td>
                                <img height="6" src="/images/corner_lft2.gif" width="6"></td>
                            <td>
                                <div align="right">
                                    <img height="6" src="/images/corner_rgt2.gif" width="6"></div>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table bordercolor="#c2d2e2" cellspacing="0" cellpadding="2" width="100%" border="1">
                        <tr>
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td bgcolor="#1765a7">
                                            <img height="11" src="/images/pic_results.gif" width="61"></td>
                                    </tr>
                                </table>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                    <tr>
                                        <td class="bglist" width="10%">卡号</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="5%">客户姓名</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="12%">产品名称</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="5%">期限</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>

                                        <%--<td class="bglist" width="5%">折扣率</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="5%">年化利息</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>--%>

                                        <td class="bglist" width="10%">实收金额(万)</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="10%">入卡金额(万)</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="8%">起息日</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="7%">到期日</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>


                                        <td class="bglist" width="5%">销售地区</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="10%">备注</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">入账</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">卡帐</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">退款</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">失效</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">续存</td>
                                        <td class="bglist"><img height="16" src="/images/dot_vline2.gif" width="1"></td>
                                        <td class="bglist" width="3%">结算</td>

                                    </tr>
                                    <tr>
                                        <td colspan="31">
                                            <font face="宋体">
                                                <div style="overflow: auto; width: 100%; height: 100%">
                                                    <asp:GridView ID="GvData" runat="server" ShowHeader="false" AutoGenerateColumns="False"
                                                        BorderWidth="0px" Width="100%" HorizontalAlign="Center" 
                                                        Font-Size="Smaller" DataKeyNames="deal_no"
                                                        OnRowDataBound="GvData_RowDataBound" AllowPaging="True" OnPageIndexChanging="GvData_PageIndexChanging"
                                                        PageSize="20">
                                                        <HeaderStyle HorizontalAlign="Center" BorderStyle="Groove" BackColor="#C0C0FF" />
                                                        <RowStyle HorizontalAlign="Center" CssClass="bglist-2" />
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="status" ItemStyle-Width="10%">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LinkButton1" Text='<%#Eval("card_No") %>' runat="server"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="cparty_name" HeaderText="客户姓名">
                                                                <ItemStyle Width="5%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="procduct_name" HeaderText="产品名称">
                                                                <ItemStyle Width="12%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="period" HeaderText="期限">
                                                                <ItemStyle Width="5%" />
                                                            </asp:BoundField>
                                                           <%-- <asp:BoundField DataField="real_discount" HeaderText="销售折扣">
                                                                <ItemStyle Width="5%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="interest" HeaderText="年化利息">
                                                                <ItemStyle Width="5%" />
                                                            </asp:BoundField>--%>

                                                            <asp:BoundField DataField="real_count" HeaderText="实收金额">
                                                                <ItemStyle Width="10%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="incard_count" HeaderText="入卡金额">
                                                                <ItemStyle Width="10%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="value_date" HeaderText="起息日"  DataFormatString="{0:yyyy-MM-dd}">
                                                                <ItemStyle Width="8%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="due_date" HeaderText="到期日"  DataFormatString="{0:yyyy-MM-dd}">
                                                                <ItemStyle Width="7%" />
                                                            </asp:BoundField>


                                                            <asp:BoundField DataField="entity" HeaderText="销售地区">
                                                                <ItemStyle Width="5%" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="remark" HeaderText="备注">
                                                                <ItemStyle Width="10%" />
                                                            </asp:BoundField>
                                                            <asp:TemplateField HeaderText="show" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgbt" ImageUrl="~/images/search1.gif" Width="20px" Height="20px" 
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>'></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="send" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgbtsend" ImageUrl="~/images/MYSL.ICO" Width="18px" Height="12px"
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>'></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Refund" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgRefund" ImageUrl="~/images/thundershortcut.ico" Width="20px" Height="20px" 
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>' ></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Valid" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgValid" ImageUrl="~/images/stop.ico" Width="18px" Height="12px"
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>'  onclick="imgValid_Click"></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Again" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgAgain" ImageUrl="~/images/thunderskin.ico" Width="18px" Height="12px"
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>' ></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Settle" ShowHeader="False">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgSettle" ImageUrl="~/images/MiningModel.ico" Width="18px" Height="12px"
                                                                        runat="server" CommandArgument=' <%#Eval("deal_no") %>' ></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="3%" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                    
                                                </div>
                                            </font>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td>
                                <img height="3" src="/images/spacer.gif" width="1"></td>
                        </tr>
                    </table>
                    <br>
                </td>
                <td valign="top" width="10">
                    <img height="1" alt="" src="/images/spacer.gif" width="10"></td>
            </tr>
        </table>
    </form>
</body>
</html>